﻿using FreeSql.DatabaseModel;using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using Newtonsoft.Json;
using FreeSql.DataAnnotations;

namespace ConsoleApp1.Models.DB {

	/// <summary>
	/// 局放
	/// </summary>
	[JsonObject(MemberSerialization.OptIn), Table(Name = "t_Partial", DisableSyncStructure = true)]
	public partial class TPartial {

		/// <summary>
		/// 主键唯一标识
		/// </summary>
		[JsonProperty, Column(IsPrimary = true, IsIdentity = true)]
		public long Id { get; set; }

		/// <summary>
		/// A相1通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A1AvgElectric { get; set; }

		/// <summary>
		/// A相1通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A1Frequency { get; set; }

		/// <summary>
		/// 设备A1硬件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A1hardversion { get; set; }

		/// <summary>
		/// 设备A1软件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A1softversion { get; set; }

		/// <summary>
		/// 设备A1电源5v电压单位(mV)
		/// </summary>
		[JsonProperty]
		public int? A1Voltage1 { get; set; }

		/// <summary>
		/// 设备A1电源3.3V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? A1Voltage2 { get; set; }

		/// <summary>
		/// 设备A1电源2.5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? A1Voltage3 { get; set; }

		/// <summary>
		/// A相1通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A1waveform { get; set; }

		/// <summary>
		/// A相2通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A2AvgElectric { get; set; }

		/// <summary>
		/// A相2通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A2Frequency { get; set; }

		/// <summary>
		/// 设备A2硬件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A2hardversion { get; set; }

		/// <summary>
		/// 设备A2软件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A2softversion { get; set; }

		/// <summary>
		/// 设备A2电源12V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? A2Voltage1 { get; set; }

		/// <summary>
		/// 设备A2电源5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? A2Voltage2 { get; set; }

		/// <summary>
		/// 设备A2电源3.3V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? A2Voltage3 { get; set; }

		/// <summary>
		/// A相2通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A2waveform { get; set; }

		/// <summary>
		/// A相3通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A3AvgElectric { get; set; }

		/// <summary>
		/// A相3通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A3Frequency { get; set; }

		/// <summary>
		/// A相3通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A3waveform { get; set; }

		/// <summary>
		/// A相4通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A4AvgElectric { get; set; }

		/// <summary>
		/// A相4通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A4Frequency { get; set; }

		/// <summary>
		/// A相4通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A4waveform { get; set; }

		/// <summary>
		/// A相5通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A5AvgElectric { get; set; }

		/// <summary>
		/// A相5通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A5Frequency { get; set; }

		/// <summary>
		/// A相5通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string A5waveform { get; set; }

		/// <summary>
		/// A相放电量最大值
		/// </summary>
		[JsonProperty]
		public int? AElectricMaxValue { get; set; }

		/// <summary>
		/// A相放电频率最大值
		/// </summary>
		[JsonProperty]
		public int? AFrequencyMaxValue { get; set; }

		/// <summary>
		/// 0正常其他异常
		/// </summary>
		[JsonProperty]
		public int? Astatus { get; set; }

		/// <summary>
		/// B相1通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B1AvgElectric { get; set; }

		/// <summary>
		/// B相1通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B1Frequency { get; set; }

		/// <summary>
		/// 设备B1硬件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B1hardversion { get; set; }

		/// <summary>
		/// 设备B1软件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B1softversion { get; set; }

		/// <summary>
		/// 设备B1电源5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? B1Voltage1 { get; set; }

		/// <summary>
		/// 设备B1电源3.3V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? B1Voltage2 { get; set; }

		/// <summary>
		/// 设备B1电源2.5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? B1Voltage3 { get; set; }

		/// <summary>
		/// B相1通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B1waveform { get; set; }

		/// <summary>
		/// B相2通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B2AvgElectric { get; set; }

		/// <summary>
		/// B相2通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B2Frequency { get; set; }

		/// <summary>
		/// 设备B2硬件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B2hardversion { get; set; }

		/// <summary>
		/// 设备B2软件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B2softversion { get; set; }

		/// <summary>
		/// 设备B2电源12V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? B2Voltage1 { get; set; }

		/// <summary>
		/// 设备B2电源5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? B2Voltage2 { get; set; }

		/// <summary>
		/// 设备B2电源3.3V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? B2Voltage3 { get; set; }

		/// <summary>
		/// B相2通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B2waveform { get; set; }

		/// <summary>
		/// B相3通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B3AvgElectric { get; set; }

		/// <summary>
		/// B相3通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B3Frequency { get; set; }

		/// <summary>
		/// B相3通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B3waveform { get; set; }

		/// <summary>
		/// B相4通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B4AvgElectric { get; set; }

		/// <summary>
		/// B相4通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B4Frequency { get; set; }

		/// <summary>
		/// B相4通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B4waveform { get; set; }

		/// <summary>
		/// B相5通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B5AvgElectric { get; set; }

		/// <summary>
		/// B相5通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B5Frequency { get; set; }

		/// <summary>
		/// B相5通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string B5waveform { get; set; }

		/// <summary>
		/// B相放电量最大值
		/// </summary>
		[JsonProperty]
		public int? BElectricMaxValue { get; set; }

		/// <summary>
		/// B相放电频率最大值
		/// </summary>
		[JsonProperty]
		public int? BFrequencyMaxValue { get; set; }

		/// <summary>
		/// 0正常其他异常
		/// </summary>
		[JsonProperty]
		public int? Bstatus { get; set; }

		/// <summary>
		/// C相1通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C1AvgElectric { get; set; }

		/// <summary>
		/// C相1通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C1Frequency { get; set; }

		/// <summary>
		/// 设备C1硬件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C1hardversion { get; set; }

		/// <summary>
		/// 设备C1软件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C1softversion { get; set; }

		/// <summary>
		/// 设备C1电源5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? C1Voltage1 { get; set; }

		/// <summary>
		/// 设备C1电源3.3V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? C1Voltage2 { get; set; }

		/// <summary>
		/// 设备C1电源2.5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? C1Voltage3 { get; set; }

		/// <summary>
		/// C相1通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C1waveform { get; set; }

		/// <summary>
		/// C相2通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C2AvgElectric { get; set; }

		/// <summary>
		/// C相2通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C2Frequency { get; set; }

		/// <summary>
		/// 设备C2硬件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C2hardversion { get; set; }

		/// <summary>
		/// 设备C2软件版本号
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C2softversion { get; set; }

		/// <summary>
		/// 设备C2电源12V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? C2Voltage1 { get; set; }

		/// <summary>
		/// 设备C2电源5V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? C2Voltage2 { get; set; }

		/// <summary>
		/// 设备C2电源3.3V电压(mV)
		/// </summary>
		[JsonProperty]
		public int? C2Voltage3 { get; set; }

		/// <summary>
		/// C相2通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C2waveform { get; set; }

		/// <summary>
		/// C相3通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C3AvgElectric { get; set; }

		/// <summary>
		/// C相3通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C3Frequency { get; set; }

		/// <summary>
		/// C相3通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C3waveform { get; set; }

		/// <summary>
		/// C相4通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C4AvgElectric { get; set; }

		/// <summary>
		/// C相4通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C4Frequency { get; set; }

		/// <summary>
		/// C相4通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C4waveform { get; set; }

		/// <summary>
		/// C相5通道平均放电量
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C5AvgElectric { get; set; }

		/// <summary>
		/// C相5通道放电频率
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C5Frequency { get; set; }

		/// <summary>
		/// C相5通道波形
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string C5waveform { get; set; }

		/// <summary>
		/// C相放电量最大值
		/// </summary>
		[JsonProperty]
		public int? CElectricMaxValue { get; set; }

		/// <summary>
		/// C相放电频率最大值
		/// </summary>
		[JsonProperty]
		public int? CFrequencyMaxValue { get; set; }

		/// <summary>
		/// 数据录入时间
		/// </summary>
		[JsonProperty]
		public DateTime? CreateTime { get; set; }

		/// <summary>
		/// 0正常其他异常
		/// </summary>
		[JsonProperty]
		public int? Cstatus { get; set; }

		/// <summary>
		/// 设备3硬件版本号
		/// </summary>
		[JsonProperty, Column(Name = "d3hardversion", StringLength = -2)]
		public string D3hardversion { get; set; }

		/// <summary>
		/// 设备3软件版本号
		/// </summary>
		[JsonProperty, Column(Name = "d3softversion", StringLength = -2)]
		public string D3softversion { get; set; }

		/// <summary>
		/// 设备3电源12V电压(mV)
		/// </summary>
		[JsonProperty, Column(Name = "d3Voltage1")]
		public int? D3Voltage1 { get; set; }

		/// <summary>
		/// 设备3电源5V电压(mV)
		/// </summary>
		[JsonProperty, Column(Name = "d3Voltage2")]
		public int? D3Voltage2 { get; set; }

		/// <summary>
		/// 设备3电源3.3V电压(mV)
		/// </summary>
		[JsonProperty, Column(Name = "d3Voltage3")]
		public int? D3Voltage3 { get; set; }

		/// <summary>
		/// 设备Id十进制形式
		/// </summary>
		[JsonProperty, Column(Name = "deviceId")]
		public long? DeviceId { get; set; }

		/// <summary>
		/// 局放唯一标识Hex地址
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string PartialId { get; set; }

		/// <summary>
		/// 状态字1
		/// </summary>
		[JsonProperty, Column(Name = "status1", StringLength = -2)]
		public string Status1 { get; set; }

		/// <summary>
		/// 状态字2
		/// </summary>
		[JsonProperty, Column(Name = "status2", StringLength = -2)]
		public string Status2 { get; set; }

		/// <summary>
		/// 状态字3
		/// </summary>
		[JsonProperty, Column(Name = "status3", StringLength = -2)]
		public string Status3 { get; set; }

		/// <summary>
		/// 设备唯一标识
		/// </summary>
		[JsonProperty, Column(StringLength = -2)]
		public string TerminalId { get; set; }

	}

}
